import hashlib

data = b"hello world"

sha256_hash = hashlib.new("sha256")
sha256_hash.update(data)
print(sha256_hash.hexdigest())
print(sha256_hash.digest())

md5_hash = hashlib.md5(data)
print(md5_hash.hexdigest())
print(md5_hash.digest())

sha1_hash = hashlib.sha1(data)
print(sha1_hash.hexdigest())
print(sha1_hash.digest())

sha512_hash = hashlib.sha512(data)
print(sha512_hash.hexdigest())
print(sha512_hash.digest())
